<?php

require_once 'Pipes/Form/Factory.php';
require_once 'PipesImpl/Model.php';

class PipesCore_Helpers_Form
{
    private $_view = null;

    public function __construct(PipesImpl_Config $config, PipesImpl_View $view) {
        $this->_view = $view;
    }

    public function factory(PipesImpl_Model $model) {
        return new Pipes_Form_Factory($model, $this->_view->action('browse', $model));
    }
}
